<?php

namespace App\Kuafu\Dashboard\Controller\B;

use App\Http\Controllers\Controller;
use App\Kuafu\Base\Enum\BaseCodeEnum;
use App\Kuafu\Dashboard\Model\Dashboard;
use Illuminate\Http\Request;

class IndexController extends Controller
{

    protected $dashboardModel;

    public function __construct()
    {
        $this->dashboardModel = new Dashboard();
    }

    /**
     * 主页面入口
     * @param Request $request
     * @throws \Psr\SimpleCache\InvalidArgumentException
     */
    public function index(Request $request)
    {
        echo $this->dashboardModel->getPage('index');
    }

    /**
     * 登录页面入口
     *
     * @param Request $request
     * @throws \Psr\SimpleCache\InvalidArgumentException
     */
    public function login(Request $request)
    {
        echo $this->dashboardModel->getPage('login');
    }
}
